package com.chinaztt.fda.http;

public interface HttpState {

    public static final int ERR_CODE_USER_CANCEL = 0;
    public static final int ERR_CODE_ACCESSTICKET_EMPTY = 1;
    public static final int ERR_CODE_HTTP_REQUEST = 2;
    public static final int ERR_CODE_HTTP_RESPOND = 3;

    public static final String STATE_CONNECTING = "网络连接中";
    public static final String STATE_SENDING = "发送数据中";
    public static final String STATE_RECEIVING = "接收数据中";
    public static final String COMMUNICATION_STATE_PACKING = "数据打包中";
    public static final String COMMUNICATION_STATE_UNPACKING = "数据解析中";
    public static final String COMMUNICATION_STATE_TRANSFERING = "数据转换中";

    public static final String ERROR_RESPON_COMMON = "服务器返回出错！";
    public static final String ERROR_RESPON_FAILED = "服务器处理失败！";
    public static final String ERROR_RESPON_NO_DATA = "服务器返回数据为空！";

    public static final String ERROR_ACCESSTICKET_EMPTY = "[E0]用户登录票据无效,请重新登录";
    public static final String ERROR_URI_NULL = "[E1]服务器地址异常";
    public static final String ERROR_TRANSTYPE_NOTSUPPORT = "[E2]未定义的请求类型";
    public static final String ERROR_NULL_HTTPRESPONSE = "[E3]请求失败";
    public static final String ERROR_SIGNDATA_CHECKED_FAILD = "[E4]返回数据验签失败";
    public static final String ERROR_RESPONSE_ERRCODE = "[E5]报文处理错误";
    public static final String ERROR_MSG_REQUESTERR = "[E6]请求数据有误!";

    public static final String ERROR_CLIENT_PROTOCOL = "[E10]通讯失败";
    public static final String ERROR_UNSUPPORTED_ENCODING = "[E11]通讯失败";
    public static final String ERROR_PARSE = "[E12]通讯失败";
    public static final String ERROR_CONNECT_TIMEOUT = "[E13]连接超时";
    public static final String ERROR_SOCKET_TIMEOUT = "[E14]通讯超时";
    public static final String ERROR_SOCKET = "[E15]通讯失败";
    public static final String ERROR_IO_EXCEPTION = "[E16]通讯失败";
    public static final String ERROR_EXCEPTION = "[E17]通讯失败";
    public static final String ERROR_STATUS_CODE = "[E18]连接问题";


}
